//
//  LJScrollViewImage.h
//  LJScrollImageView
//
//  Created by lanou on 15/8/1.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import <UIKit/UIKit.h>
@class LJScrollView;
@protocol LJScrollViewDelegate <NSObject>
//代理方法 点击scrollView的时候将当前的一些值传出去
- (void)scrollViewDidEndSelected:(LJScrollView *)scrollView viewArray:(NSArray *)viewArray atIndex:(NSUInteger)index;
@end

@interface LJScrollView : UIView
@property (strong, nonatomic)UIScrollView *scrollView;
@property (strong, nonatomic)UIView *leftView;
@property (strong, nonatomic)UIView *centerView;
@property (strong, nonatomic)UIView *rightView;
@property (assign, nonatomic)NSUInteger currentViewIndex;//记录当前显示的视图在数组中的下标
@property (strong, nonatomic)NSArray *viewArray;
@property (strong, nonatomic)UIPageControl *pageControl;
@property (strong, nonatomic)NSTimer *timer;//计时器,用于自动轮播
@property (assign, nonatomic)NSTimeInterval timeInterval;
@property (assign, nonatomic)id<LJScrollViewDelegate> delegate;
- (id)initWithFrame:(CGRect)frame
          viewArray:(NSArray *)viewArray
          Animation:(NSTimeInterval)timeInterval;
@end
